﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;
using eschoolBO;

namespace ESCHOOL.admin
{
    public partial class WebForm27 : System.Web.UI.Page
    {
        attend at = new attend();
        protected void Page_Load(object sender, EventArgs e)
        {
            if(!IsPostBack)
            {
                //Panel1.Visible=false;
                DataTable dt=at.GetPercentage(-99);
                GridView1.DataSource = dt;
                GridView1.DataBind();
                double tp=Convert.ToDouble(dt.Rows[0]["tc"].ToString());
                double sp = Convert.ToDouble(dt.Rows[0]["sc"].ToString());

            }

        }
        public double getper(double tp, double sp)
        {
            double pp = (tp / sp) * 100;
            return pp;
        }
       
       
        protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
        {

        }
    }
}
